package com.thd.springboottest.nginxproxy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * com.thd.springboottest.nginxproxy.controller.NginxProxyTest
 *
 * @author: wanglei62
 * @DATE: 2022/10/24 16:32
 **/
@Controller
public class NginxProxyTest {

    @RequestMapping("/api")
    @ResponseBody
    public String test(){
        String path = "/api";
        System.out.println(path);
        return path;
    }
    @RequestMapping("/test")
    @ResponseBody
    public String testa(){
        String path = "/test";
        System.out.println(path);
        return path;
    }

    @RequestMapping("/api/test")
    @ResponseBody
    public String testb(){
        String path = "/api/test";
        System.out.println(path);
        return path;
    }

    @RequestMapping("/thd/test")
    @ResponseBody
    public String testc(){
        String path = "/thd/test";
        System.out.println(path);
        return path;
    }

    @RequestMapping("/api/thd/test")
    @ResponseBody
    public String testd(){
        String path = "/api/thd/test";
        System.out.println(path);
        return path;
    }
    @RequestMapping("/api/api/thd/test")
    @ResponseBody
    public String teste(){
        String path = "/api/api/thd/test";
        System.out.println(path);
        return path;
    }
}
